#pragma once

#include "ClockEngine.h"
#include "Jerry's Physics\Physic_World.h"

class gButton : public clkTexture
{
protected:
	function<void()> m_idle;
	function<void()> m_hover;
	function<void()> m_click;
	function<void()> m_held;
public:
	gButton();
	~gButton();

	void update();

	void onIdle(function<void()> a_func){m_idle = a_func;}
	void onHover(function<void()> a_func){m_hover = a_func;}
	void onClick(function<void()> a_func){m_click = a_func;}
	void onHeld(function<void()> a_func){m_held = a_func;}
};